Save/Load Variable


SaveVariable
Save the variable in the registry under the Name identifier. Use LoadVariable to load the variable back.

LoadVariable
Load the variable from the registry Name.
Remember to set in General Settings the Registry entry: Check Save Last Position in Registry and set a unique name of your application. Then uncheck the Save Last Position in Registry.
The variable will be saved in the registry under the:
Registry Name (From General Settings) + The Name from the Save/Load Variable command
You should use it like that:

You have variable HiScore
Whenever the variable is updated use:
SaveVariable(ôHigh Scoreö,öHiScoreö)

And on the beginning of the program use
LoadVariable(ôHigh Scoreö,öHiScoreö)

So anytime you start program the HiScore will be loaded from registry.
If you use ôHigh Scoreö name in some other application, you really need to change the registry name in the General Settings.